package com.neuedu.service;

import com.neuedu.common.JSONData;
import com.neuedu.pojo.Product;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ProductService {
    public JSONData<String> addProduct(Product product,
                                       MultipartFile mainFile,
                                       MultipartFile[] subFiles,
                                       MultipartFile detailFile);
    public JSONData<List<Product>> queryAllProduct(int pageNum,int pageSize);
    public JSONData<List<Product>> searchProduct(String productId,String productName,String categoryId,int pageNum,int pageSize);
    public JSONData<String> changeProductStatus(Integer productId,Integer status);
}
